import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import '../dist/icon/iconfont.css'
import './assets/icon/iconfont.css'
// 图标
import IconSvg from '@/components/icon-component'
// 导入vant.js
import './utils/vant.js'
// 导入iview
import './utils/iview.js'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
// 导入amfe-flexible ：作用是自动设置rem（html的fontsize）为当前屏幕的 1/10
import 'amfe-flexible'
import moment from 'moment'
Vue.component('icon-svg', IconSvg)
Vue.use(iView)
// 导入moment
Vue.config.productionTip = false
// 设置语言
moment.locale('zh-cn')
Vue.filter('showTime', function (value) {
  return moment(value).fromNow()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
